//
//  YYHomeCell.m
//  drivingSchool
//
//  Created by 子yu 刘 on 2018/7/29.
//  Copyright © 2018年 子yu 刘. All rights reserved.
//

#import "YYHomeCell.h"

@implementation YYHomeCell

- (void)awakeFromNib {
    [super awakeFromNib];
    self.btnApply.layer.borderColor = DEF_COLOR_LINE.CGColor;
    self.shadowView.layer.shadowOffset = CGSizeMake(1, 1);
    self.shadowView.layer.shadowOpacity = 0.8;
    self.shadowView.layer.shadowColor = [UIColor colorWithWhite:0.7 alpha:1].CGColor;
}

-(void)setModel:(YYHomeModel *)model{
    _model = model;
    [self.picture sd_setImageWithURL:[NSURL URLWithString:[NSString stringWithFormat:@"%@%@",DEF_INTERFACE_WEBVIEWSERVICE,model.image]]];
    self.lbName.text = model.school_name;
    self.lbPrice.text = model.money;
    self.lbIntroduction.text = model.school_address;
}


@end
